package com.example.coreshopapp.http;

import com.google.gson.Gson;

public  class RequestData<T> {
    private T data;

    public RequestData(T data) {
        this.data = data;
    }

    public T getData() {
        return data;
    }

    public String toJson() {
        Gson gson = new Gson();
        return gson.toJson(this);
    }
}